package com.ruoyi.swla2.controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.swla2.domain.WarnSs;
import com.ruoyi.swla2.model.MultiWarnDataModel;
import com.ruoyi.swla2.service.IWarnSsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
* @Description: 报警实时表
* @date: 2025/2/27 16:39
* @author: zt
*/
@RestController
@RequestMapping("/swla2/warnss")
public class WarnSsController extends BaseController {
    @Autowired
    private IWarnSsService wsService;

    /**
     * 查询多表实时报警数据
     */
    @GetMapping("/getMultiWarnlist")
    public AjaxResult getMultiWarnlist() {
        List<MultiWarnDataModel> list = wsService.getMultiWarnlist();
        return success(list);
    }

}
